<?php

class Db_Collection extends Base_Abstract implements Iterator {
    private $position = 0;

    public function __construct() {
		
    }

    function rewind() {
        $this->position = 0;
    }

    function current() {
        return $this->_data[$this->position];
    }

    function key() {
        return $this->position;
    }

    function next() {
        ++$this->position;
    }

    function valid() {
        return isset($this->_data[$this->position]);
    }
}